<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  

  
  <title>Hexo</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta property="og:type" content="website">
<meta property="og:title" content="Hexo">
<meta property="og:url" content="http://yoursite.com/page/2/index.html">
<meta property="og:site_name" content="Hexo">
<meta property="og:locale" content="en_US">
<meta property="article:author" content="John Doe">
<meta name="twitter:card" content="summary">
  
    <link rel="alternate" href="/atom.xml" title="Hexo" type="application/atom+xml">
  
  
    <link rel="icon" href="/favicon.png">
  
  
    <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
  
  
<link rel="stylesheet" href="/css/style.css">

<meta name="generator" content="Hexo 4.2.1"></head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/" id="logo">Hexo</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/">Home</a>
        
          <a class="main-nav-link" href="/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="Search"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="http://yoursite.com"></form>
      </div>
    </div>
  </div>
</header>
      <div class="outer">
        <section id="main">
  
    <article id="post-ubuntu上安装lua" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2020/07/24/ubuntu%E4%B8%8A%E5%AE%89%E8%A3%85lua/" class="article-date">
  <time datetime="2020-07-24T12:54:59.000Z" itemprop="datePublished">2020-07-24</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2020/07/24/ubuntu%E4%B8%8A%E5%AE%89%E8%A3%85lua/">ubuntu上安装lua.md</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <p>在ubuntu上安装lua执行以下命令：</p>
<figure class="highlight properties"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">#下载lua</span></span><br><span class="line"></span><br><span class="line"><span class="attr">curl</span> <span class="string">-R -O http://www.lua.org/ftp/lua-5.3.5.tar.gz</span></span><br><span class="line"><span class="attr">tar</span> <span class="string">zxf lua-5.3.5.tar.gz</span></span><br><span class="line"><span class="attr">cd</span> <span class="string">lua-5.3.5</span></span><br><span class="line"></span><br><span class="line"><span class="attr">make</span> <span class="string">linux test</span></span><br></pre></td></tr></table></figure>

<p>这时候可能会因为缺少libreadline-gplv2-dev依赖库导致以下错误</p>
<p><img src="C:%5CUsers%5Claoma%5CAppData%5CRoaming%5CTypora%5Ctypora-user-images%5Cimage-20200724205708628.png" alt="image-20200724205708628"></p>
<p>安装libreadline-gplv2-dev依赖库：</p>
<figure class="highlight properties"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">sudo</span> <span class="string">apt-get install libreadline-gplv2-dev</span></span><br></pre></td></tr></table></figure>

<p>再次执行:</p>
<figure class="highlight properties"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">make</span> <span class="string">linux test</span></span><br><span class="line"><span class="attr">sudo</span> <span class="string">make install</span></span><br></pre></td></tr></table></figure>


      
    </div>
    <footer class="article-footer">
      <a data-url="http://yoursite.com/2020/07/24/ubuntu%E4%B8%8A%E5%AE%89%E8%A3%85lua/" data-id="ckd32yhlg00026sv13u2w1a8q" class="article-share-link">Share</a>
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/ubuntu/" rel="tag">ubuntu</a></li></ul>

    </footer>
  </div>
  
</article>


  
    <article id="post-ubuntu上更换apt的安装源" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2020/07/24/ubuntu%E4%B8%8A%E6%9B%B4%E6%8D%A2apt%E7%9A%84%E5%AE%89%E8%A3%85%E6%BA%90/" class="article-date">
  <time datetime="2020-07-24T12:46:37.000Z" itemprop="datePublished">2020-07-24</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2020/07/24/ubuntu%E4%B8%8A%E6%9B%B4%E6%8D%A2apt%E7%9A%84%E5%AE%89%E8%A3%85%E6%BA%90/">ubuntu上更换apt的安装源.md</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <p>Ubuntu默认的一些源在国内无法访问，切换为阿里云的速度更快：</p>
<figure class="highlight properties"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">修改阿里源为Ubuntu</span> <span class="string">18.04默认的源</span></span><br><span class="line"></span><br><span class="line"><span class="attr">备份/etc/apt/sources.list</span></span><br><span class="line"><span class="comment">#备份</span></span><br><span class="line"><span class="attr">cp</span> <span class="string">/etc/apt/sources.list /etc/apt/sources.list.bak</span></span><br><span class="line"></span><br><span class="line"><span class="comment">#打开并编辑sources.list文件</span></span><br><span class="line"><span class="attr">vi</span> <span class="string">/etc/apt/source.list</span></span><br><span class="line"><span class="attr">v</span></span><br><span class="line"><span class="attr">在/etc/apt/sources.list文件前面添加如下条目</span></span><br><span class="line"><span class="comment">#添加阿里源</span></span><br><span class="line"><span class="attr">deb</span> <span class="string">http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse</span></span><br><span class="line"><span class="attr">deb</span> <span class="string">http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse</span></span><br><span class="line"><span class="attr">deb</span> <span class="string">http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse</span></span><br><span class="line"><span class="attr">deb</span> <span class="string">http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse</span></span><br><span class="line"><span class="attr">deb</span> <span class="string">http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse</span></span><br><span class="line"><span class="meta">deb-src</span> <span class="string">http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse</span></span><br><span class="line"><span class="meta">deb-src</span> <span class="string">http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse</span></span><br><span class="line"><span class="meta">deb-src</span> <span class="string">http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse</span></span><br><span class="line"><span class="meta">deb-src</span> <span class="string">http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse</span></span><br><span class="line"><span class="meta">deb-src</span> <span class="string">http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse</span></span><br><span class="line"></span><br><span class="line"><span class="attr">最后执行如下命令更新源</span></span><br><span class="line"><span class="comment">##更新</span></span><br><span class="line"><span class="attr">sudo</span> <span class="string">apt-get update</span></span><br><span class="line"><span class="attr">sudo</span> <span class="string">apt-get upgrade</span></span><br></pre></td></tr></table></figure>


      
    </div>
    <footer class="article-footer">
      <a data-url="http://yoursite.com/2020/07/24/ubuntu%E4%B8%8A%E6%9B%B4%E6%8D%A2apt%E7%9A%84%E5%AE%89%E8%A3%85%E6%BA%90/" data-id="ckdd490d6000ihsv19uoa5my0" class="article-share-link">Share</a>
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/ubuntu/" rel="tag">ubuntu</a></li></ul>

    </footer>
  </div>
  
</article>


  
    <article id="post-ubuntu上安装gcc" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2020/07/24/ubuntu%E4%B8%8A%E5%AE%89%E8%A3%85gcc/" class="article-date">
  <time datetime="2020-07-24T12:41:51.000Z" itemprop="datePublished">2020-07-24</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2020/07/24/ubuntu%E4%B8%8A%E5%AE%89%E8%A3%85gcc/">ubuntu上安装gcc.md</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <p>输入下面的命令：</p>
<figure class="highlight properties"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">sudo</span> <span class="string">apt install build-essential</span></span><br></pre></td></tr></table></figure>




      
    </div>
    <footer class="article-footer">
      <a data-url="http://yoursite.com/2020/07/24/ubuntu%E4%B8%8A%E5%AE%89%E8%A3%85gcc/" data-id="ckd32yhla00006sv1gbtjeui5" class="article-share-link">Share</a>
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/ubuntu/" rel="tag">ubuntu</a></li></ul>

    </footer>
  </div>
  
</article>


  
    <article id="post-idea链接github提示Invalid authentidcation data" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2020/07/21/idea%E9%93%BE%E6%8E%A5github%E6%8F%90%E7%A4%BAInvalid%20authentidcation%20data/" class="article-date">
  <time datetime="2020-07-21T15:21:07.000Z" itemprop="datePublished">2020-07-21</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/categories/idea/">idea</a>►<a class="article-category-link" href="/categories/idea/github/">github</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2020/07/21/idea%E9%93%BE%E6%8E%A5github%E6%8F%90%E7%A4%BAInvalid%20authentidcation%20data/">idea链接github提示Invalid authentidcation data</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <p><img src="https://img-blog.csdnimg.cn/20200427180105709.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0hlaVNR,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"></p>
<h3 id="方法一："><a href="#方法一：" class="headerlink" title="方法一："></a>方法一：</h3><p>在Server加上https://</p>
<p>也就是改成：<a href="https://github.com" target="_blank" rel="noopener">https://github.com</a></p>
<h3 id="方法二："><a href="#方法二：" class="headerlink" title="方法二："></a>方法二：</h3><p>idea设置里搜索HTTP Proxy ，去掉代理就可以了<br><img src="https://img-blog.csdnimg.cn/20200427180537294.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0hlaVNR,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"></p>
<h3 id="方法三："><a href="#方法三：" class="headerlink" title="方法三："></a>方法三：</h3><p>将DNS改成阿里的DNS：233.5.5.5；若DNS已经是阿里的，改成动态获取DNS；</p>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://yoursite.com/2020/07/21/idea%E9%93%BE%E6%8E%A5github%E6%8F%90%E7%A4%BAInvalid%20authentidcation%20data/" data-id="ckcw2jtdd0000swv18wn52j1q" class="article-share-link">Share</a>
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/github/" rel="tag">github</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/idea/" rel="tag">idea</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/java/" rel="tag">java</a></li></ul>

    </footer>
  </div>
  
</article>


  
    <article id="post-win10开启hyper-v后，系统保留的端口导致端口无法使用" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2020/07/21/win10%E5%BC%80%E5%90%AFhyper-v%E5%90%8E%EF%BC%8C%E7%B3%BB%E7%BB%9F%E4%BF%9D%E7%95%99%E7%9A%84%E7%AB%AF%E5%8F%A3%E5%AF%BC%E8%87%B4%E7%AB%AF%E5%8F%A3%E6%97%A0%E6%B3%95%E4%BD%BF%E7%94%A8/" class="article-date">
  <time datetime="2020-07-21T15:21:07.000Z" itemprop="datePublished">2020-07-21</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/categories/win10/">win10</a>►<a class="article-category-link" href="/categories/win10/hyper-v/">hyper-v</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2020/07/21/win10%E5%BC%80%E5%90%AFhyper-v%E5%90%8E%EF%BC%8C%E7%B3%BB%E7%BB%9F%E4%BF%9D%E7%95%99%E7%9A%84%E7%AB%AF%E5%8F%A3%E5%AF%BC%E8%87%B4%E7%AB%AF%E5%8F%A3%E6%97%A0%E6%B3%95%E4%BD%BF%E7%94%A8/">win10开启hyper-v后，系统保留的端口导致端口无法使用</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <p>win10中开启hyper-v后，每重启一次，保留的端口都会改变，因此将保留端口指定到一定的范围：</p>
<ol>
<li><p>Disable hyper-v (which will required a couple of restarts)</p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">dism.exe /Online /<span class="built_in">Disable-Feature</span>:Microsoft<span class="literal">-Hyper</span><span class="literal">-V</span></span><br></pre></td></tr></table></figure>
</li>
<li><p>When you finish all the required restarts, reserve the port you want so hyper-v doesn’t reserve it back</p>
</li>
</ol>
   <figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">netsh int ipv4 set dynamicport tcp start=<span class="number">30000</span> num=<span class="number">16383</span></span><br><span class="line"></span><br><span class="line">netsh int ipv4 add excludedportrange protocol=tcp startport=<span class="number">60338</span> numberofports=<span class="number">1</span></span><br></pre></td></tr></table></figure>

<ol start="3">
<li>Re-Enable hyper-V (which will require a couple of restart)<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">   dism.exe &#x2F;Online &#x2F;Enable-Feature:Microsoft-Hyper-V &#x2F;All</span><br><span class="line">&#96;</span><br></pre></td></tr></table></figure>



</li>
</ol>
<p>when your system is back, you will be able to bind to that port successfully.</p>
<p>查看win10 开启hyper-v后的保留端口有哪些，查看命令如下：</p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">netsh interface ipv4 show excludedportrange protocol=tcp</span><br></pre></td></tr></table></figure>






      
    </div>
    <footer class="article-footer">
      <a data-url="http://yoursite.com/2020/07/21/win10%E5%BC%80%E5%90%AFhyper-v%E5%90%8E%EF%BC%8C%E7%B3%BB%E7%BB%9F%E4%BF%9D%E7%95%99%E7%9A%84%E7%AB%AF%E5%8F%A3%E5%AF%BC%E8%87%B4%E7%AB%AF%E5%8F%A3%E6%97%A0%E6%B3%95%E4%BD%BF%E7%94%A8/" data-id="ckcxfy3kz00000gv121my13dg" class="article-share-link">Share</a>
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/hyper-v/" rel="tag">hyper-v</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/port/" rel="tag">port</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/win10/" rel="tag">win10</a></li></ul>

    </footer>
  </div>
  
</article>


  
    <article id="post-docker下安装fastdfs" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2020/07/19/docker%E4%B8%8B%E5%AE%89%E8%A3%85fastdfs/" class="article-date">
  <time datetime="2020-07-19T13:21:07.000Z" itemprop="datePublished">2020-07-19</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/categories/docker/">docker</a>►<a class="article-category-link" href="/categories/docker/fastdfs/">fastdfs</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2020/07/19/docker%E4%B8%8B%E5%AE%89%E8%A3%85fastdfs/">docker上安装与使用fastdfs</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h3 id="1-docker拉取镜像"><a href="#1-docker拉取镜像" class="headerlink" title="1.docker拉取镜像"></a>1.docker拉取镜像</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker pull morunchang/fastdfs</span><br></pre></td></tr></table></figure>

<h3 id="2-运行tracker"><a href="#2-运行tracker" class="headerlink" title="2. 运行tracker"></a>2. 运行tracker</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker run -d --name tracker --net=host morunchang/fastdfs sh tracker.sh</span><br></pre></td></tr></table></figure>

<h3 id="3-运行storage"><a href="#3-运行storage" class="headerlink" title="3. 运行storage"></a>3. 运行storage</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">docker run -d --name storage --net=host -e TRACKER_IP=172.30.32.1:22122 -e GROUP_NAME=group1 morunchang/fastdfs sh storage.sh</span><br><span class="line"></span><br><span class="line">docker run -d --name storage --net=host -e TRACKER_IP=192.168.5.137:22122 -e GROUP_NAME=group1 morunchang/fastdfs sh storage.sh</span><br><span class="line"></span><br><span class="line">docker run -d --name storage --net=host -e TRACKER_IP=172.30.39.172:22122 -e GROUP_NAME=group1 morunchang/fastdfs sh storage.sh</span><br></pre></td></tr></table></figure>

<ul>
<li>使用的网络模式是-net=host,127.0.0.1是宿主机的IP</li>
<li>group1是组名，即storage的组</li>
<li>如果想要增加新的storage服务器，再次运行该命令，注意更换组名</li>
</ul>
<h3 id="4-设置容器开机启动"><a href="#4-设置容器开机启动" class="headerlink" title="4. 设置容器开机启动"></a>4. 设置容器开机启动</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">docker update --restart=always tracker</span><br><span class="line">docker update --restart=always storage</span><br></pre></td></tr></table></figure>

<h3 id="5-进入docker中的storage容器中"><a href="#5-进入docker中的storage容器中" class="headerlink" title="5.进入docker中的storage容器中"></a>5.进入docker中的storage容器中</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker exec -it storage /bin/bash</span><br></pre></td></tr></table></figure>

<ul>
<li>前面安装tracker与storage时候已经安装了nginx</li>
</ul>
<h3 id="6-查看nginx的配置"><a href="#6-查看nginx的配置" class="headerlink" title="6. 查看nginx的配置"></a>6. 查看nginx的配置</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">cd /etc/nginx/conf</span><br><span class="line">vi nginx.conf</span><br></pre></td></tr></table></figure>

<p><img src="C:%5CUsers%5Claoma%5CAppData%5CRoaming%5CTypora%5Ctypora-user-images%5Cimage-20200719154313392.png" alt="image-20200719154313392"></p>
<p>上图配置如下：</p>
<figure class="highlight nginx"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="attribute">location</span> <span class="regexp">~ /M00</span>&#123;</span><br><span class="line">	<span class="attribute">root</span> /data/fast_data/data;</span><br><span class="line">	ngx_fastdfs_module;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<p>增加禁止缓存：</p>
<figure class="highlight nginx"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attribute">add_header</span> Cache-Control <span class="literal">no</span>-store;</span><br></pre></td></tr></table></figure>

<p>退出容器：</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">exit</span><br></pre></td></tr></table></figure>

<p>重启storage容器：</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker restart storage</span><br></pre></td></tr></table></figure>

<p>查看启动容器  <code>docker ps</code></p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">199b787fc342        morunchang/fastdfs   "sh storage.sh"          33 minutes ago      Up 33 minutes        storage</span><br><span class="line">6a3c6a3d57e8        morunchang/fastdfs   "sh tracker.sh"          About an hour ago   Up About an hour     tracker</span><br></pre></td></tr></table></figure>



<h3 id="7-查看storage的配置"><a href="#7-查看storage的配置" class="headerlink" title="7. 查看storage的配置"></a>7. 查看storage的配置</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">#</span><span class="bash">进入storage容器</span></span><br><span class="line">docker exec -it storage /bin/bash</span><br><span class="line"><span class="meta">#</span><span class="bash">进入fdfs目录</span></span><br><span class="line">cd /etc/fdfs</span><br><span class="line"><span class="meta">#</span><span class="bash">进入配置文件</span></span><br><span class="line">vi storage.conf</span><br></pre></td></tr></table></figure>


      
    </div>
    <footer class="article-footer">
      <a data-url="http://yoursite.com/2020/07/19/docker%E4%B8%8B%E5%AE%89%E8%A3%85fastdfs/" data-id="ckct4u2wk00006gv14vre3pim" class="article-share-link">Share</a>
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/docker/" rel="tag">docker</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/fastdfs/" rel="tag">fastdfs</a></li></ul>

    </footer>
  </div>
  
</article>


  
    <article id="post-win10下的wsl1升级为wsl2" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2020/07/15/win10%E4%B8%8B%E7%9A%84wsl1%E5%8D%87%E7%BA%A7%E4%B8%BAwsl2/" class="article-date">
  <time datetime="2020-07-15T13:21:07.000Z" itemprop="datePublished">2020-07-15</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2020/07/15/win10%E4%B8%8B%E7%9A%84wsl1%E5%8D%87%E7%BA%A7%E4%B8%BAwsl2/">win10下的wsl1升级为wsl2</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h3 id="wsl1更新到wsl2的前置条件"><a href="#wsl1更新到wsl2的前置条件" class="headerlink" title="wsl1更新到wsl2的前置条件"></a>wsl1更新到wsl2的前置条件</h3><ul>
<li><p>win10的版本已经更新到2004版本，内部版本为19041或者更高</p>
<p>windows徽标键+R，输入winver，确定，可以查看Windows内部版本</p>
</li>
</ul>
<ul>
<li><p>在启用或者关闭Windows功能中打开虚拟机平台</p>
<p>或者可以通过下面的命令来打开虚拟机平台 ，然后<strong>重启电脑</strong>完成WSL安装并更新到WSL2</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart</span><br></pre></td></tr></table></figure>


</li>
</ul>
<p><strong>由于个人已经在WSL1上安装了Ubuntu-18.04，接下来用下面的命令将该版本设置到WSL2上：</strong></p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">wls --set-version Ubuntu-18.04 2</span><br></pre></td></tr></table></figure>

<p>运行该命令后，可能会看到以下消息：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">WSL 2 requires an update to its kernel component. For information please visit https:&#x2F;&#x2F;aka.ms&#x2F;wsl2kernel</span><br></pre></td></tr></table></figure>

<p>那么访问该链接：<a href="https://aka.ms/wsl2kernel按照其中步骤来处理。" target="_blank" rel="noopener">https://aka.ms/wsl2kernel按照其中步骤来处理。</a></p>
<p>待安装好wsl2 linux内核后，再次执行命令：</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">wsl --set-version Ubuntu-18.04 2</span><br></pre></td></tr></table></figure>

<h3 id="将WSL2设置为默认版本"><a href="#将WSL2设置为默认版本" class="headerlink" title="将WSL2设置为默认版本"></a>将WSL2设置为默认版本</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">wsl --set-default-version 2</span><br></pre></td></tr></table></figure>



<h3 id="查看已安装的linux分发版的WSL的版本："><a href="#查看已安装的linux分发版的WSL的版本：" class="headerlink" title="查看已安装的linux分发版的WSL的版本："></a>查看已安装的linux分发版的WSL的版本：</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">wsl -l -v</span><br></pre></td></tr></table></figure>

<p>若要将分发版设置为受某一 WSL 版本支持，请运行：</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">wsl --set-version &lt;distribution name&gt; &lt;versionNumber&gt;</span><br></pre></td></tr></table></figure>

<p>请确保将 <code>&lt;distribution name&gt;</code> 替换为你的分发版的实际名称，并将 <code>&lt;versionNumber&gt;</code> 替换为数字“1”或“2”。 可以随时更改回 WSL 1，方法是运行与上面相同的命令，但将“2”替换为“1”</p>
<p>具体参考教程地址：</p>
<p><a href="https://docs.microsoft.com/zh-cn/windows/wsl/install-win10#update-to-wsl-2" target="_blank" rel="noopener">https://docs.microsoft.com/zh-cn/windows/wsl/install-win10#update-to-wsl-2</a></p>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://yoursite.com/2020/07/15/win10%E4%B8%8B%E7%9A%84wsl1%E5%8D%87%E7%BA%A7%E4%B8%BAwsl2/" data-id="ckcqayu8j0000u4v18el67q70" class="article-share-link">Share</a>
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/ubuntu/" rel="tag">ubuntu</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/windows10/" rel="tag">windows10</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/wsl1/" rel="tag">wsl1</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/wsl2/" rel="tag">wsl2</a></li></ul>

    </footer>
  </div>
  
</article>


  
    <article id="post-docker下运行mysql" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2020/07/15/docker%E4%B8%8B%E8%BF%90%E8%A1%8Cmysql/" class="article-date">
  <time datetime="2020-07-15T13:21:07.000Z" itemprop="datePublished">2020-07-15</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/categories/docker/">docker</a>►<a class="article-category-link" href="/categories/docker/mysql/">mysql</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2020/07/15/docker%E4%B8%8B%E8%BF%90%E8%A1%8Cmysql/">docker上运行MySQL</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h3 id="1-docker上安装MySQL"><a href="#1-docker上安装MySQL" class="headerlink" title="1. docker上安装MySQL"></a>1. docker上安装MySQL</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker pull mysql:latest</span><br></pre></td></tr></table></figure>



<h3 id="2-docker-上启动MySQL，MySQL服务一直运行"><a href="#2-docker-上启动MySQL，MySQL服务一直运行" class="headerlink" title="2. docker 上启动MySQL，MySQL服务一直运行"></a>2. docker 上启动MySQL，MySQL服务一直运行</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker run -p 3306:3306 --name docker_mysql -e MYSQL_ROOT_PASSWORD=root -d mysql</span><br></pre></td></tr></table></figure>

<p>（参数 -p 设置端口，–name 取名 ，-e MYSQL_ROOT_PASSWORD=root设置 账号为 root ，密码为 123456 ，</p>
<p>  -d 表示作为一个守护进程在后台运行 ）</p>
<h3 id="3-相关文件地址配置，可以在运行容器时设置："><a href="#3-相关文件地址配置，可以在运行容器时设置：" class="headerlink" title="3. 相关文件地址配置，可以在运行容器时设置："></a>3. 相关文件地址配置，可以在运行容器时设置：</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker run -p 3306:3306 -e MYSQL_ROOT_PASSWORD='password' -v $HOME/my:/etc/mysql/conf.d/ --name mysql  -d mysql</span><br></pre></td></tr></table></figure>

<p>但要求对应路径对应文件已存在，才能成功挂载相内容到对应位置。</p>
<blockquote>
<p>-p 3306:3306：将容器的3306端口映射到主机的3306端口</p>
<p>$HOME/my这个文件夹是存放my.cnf配置文件</p>
<p>-e MYSQL_ROOT_PASSWORD=root：初始化root用户的密码</p>
</blockquote>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://yoursite.com/2020/07/15/docker%E4%B8%8B%E8%BF%90%E8%A1%8Cmysql/" data-id="ckcqayu8n0001u4v1fvop8ju0" class="article-share-link">Share</a>
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/docker/" rel="tag">docker</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/ubuntu/" rel="tag">ubuntu</a></li></ul>

    </footer>
  </div>
  
</article>


  
    <article id="post-ubuntu上安装docker" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2020/07/15/ubuntu%E4%B8%8A%E5%AE%89%E8%A3%85docker/" class="article-date">
  <time datetime="2020-07-15T13:21:07.000Z" itemprop="datePublished">2020-07-15</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2020/07/15/ubuntu%E4%B8%8A%E5%AE%89%E8%A3%85docker/">win10子系统上的ubuntu上安装docker</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h3 id="1-更换国内软件源，推荐中国科技大学的源，稳定速度较快。"><a href="#1-更换国内软件源，推荐中国科技大学的源，稳定速度较快。" class="headerlink" title="1 更换国内软件源，推荐中国科技大学的源，稳定速度较快。"></a>1 更换国内软件源，推荐中国科技大学的源，稳定速度较快。</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak</span><br><span class="line"></span><br><span class="line">sudo sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list</span><br><span class="line"></span><br><span class="line">sudo apt update</span><br></pre></td></tr></table></figure>

<h3 id="2-安装需要的包"><a href="#2-安装需要的包" class="headerlink" title="2 安装需要的包"></a>2 安装需要的包</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo apt install apt-transport-https ca-certificates software-properties-common curl</span><br></pre></td></tr></table></figure>



<h3 id="3-添加GPG密钥，并添加Docker-ce软件源，这里还是以中国科技大学的Docker-ce源为例："><a href="#3-添加GPG密钥，并添加Docker-ce软件源，这里还是以中国科技大学的Docker-ce源为例：" class="headerlink" title="3 添加GPG密钥，并添加Docker-ce软件源，这里还是以中国科技大学的Docker-ce源为例："></a>3 添加GPG密钥，并添加Docker-ce软件源，这里还是以中国科技大学的Docker-ce源为例：</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu/gpg | sudo apt-key add -</span><br><span class="line">sudo add-apt-repository "deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu \</span><br><span class="line"><span class="meta">$</span><span class="bash">(lsb_release -cs) stable<span class="string">"</span></span></span><br></pre></td></tr></table></figure>

<h3 id="4-添加成功后更新软件包缓存"><a href="#4-添加成功后更新软件包缓存" class="headerlink" title="4 添加成功后更新软件包缓存"></a>4 添加成功后更新软件包缓存</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo apt update</span><br></pre></td></tr></table></figure>



<h3 id="5-安装-Docker-ce"><a href="#5-安装-Docker-ce" class="headerlink" title="5 安装 Docker-ce"></a>5 安装 Docker-ce</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo apt install docker-ce</span><br></pre></td></tr></table></figure>

<h3 id="6-设置开机自启动并启动-Docker-ce（安装成功后默认已设置并启动，可忽略）"><a href="#6-设置开机自启动并启动-Docker-ce（安装成功后默认已设置并启动，可忽略）" class="headerlink" title="6.设置开机自启动并启动 Docker-ce（安装成功后默认已设置并启动，可忽略）"></a>6.设置开机自启动并启动 Docker-ce（安装成功后默认已设置并启动，可忽略）</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">sudo systemctl enable docker</span><br><span class="line">sudo systemctl start docker</span><br></pre></td></tr></table></figure>

<h3 id="7-测试运行"><a href="#7-测试运行" class="headerlink" title="7.测试运行"></a>7.测试运行</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo docker run hello-world</span><br></pre></td></tr></table></figure>

<h3 id="8-添加当前用户到-docker-用户组，可以不用-sudo-运行-docker（可选）"><a href="#8-添加当前用户到-docker-用户组，可以不用-sudo-运行-docker（可选）" class="headerlink" title="8.添加当前用户到 docker 用户组，可以不用 sudo 运行 docker（可选）"></a>8.添加当前用户到 docker 用户组，可以不用 sudo 运行 docker（可选）</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">sudo groupadd docker</span><br><span class="line">sudo usermod -aG docker $USER</span><br></pre></td></tr></table></figure>

<h3 id="9-测试添加用户组（可选）"><a href="#9-测试添加用户组（可选）" class="headerlink" title="9.测试添加用户组（可选）"></a>9.测试添加用户组（可选）</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker run hello-world</span><br></pre></td></tr></table></figure>


      
    </div>
    <footer class="article-footer">
      <a data-url="http://yoursite.com/2020/07/15/ubuntu%E4%B8%8A%E5%AE%89%E8%A3%85docker/" data-id="ckcqayu8p0002u4v1bihc9kjq" class="article-share-link">Share</a>
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/docker/" rel="tag">docker</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/ubuntu/" rel="tag">ubuntu</a></li></ul>

    </footer>
  </div>
  
</article>


  
    <article id="post-unbutu下编译openjdk13" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2020/07/09/unbutu%E4%B8%8B%E7%BC%96%E8%AF%91openjdk13/" class="article-date">
  <time datetime="2020-07-09T13:28:15.000Z" itemprop="datePublished">2020-07-09</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2020/07/09/unbutu%E4%B8%8B%E7%BC%96%E8%AF%91openjdk13/">unbutu下编译openjdk13</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <ol>
<li><p>安装GCC；</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo apt-get install build-essential</span><br></pre></td></tr></table></figure>



</li>
</ol>
<ol start="2">
<li><p>更新包</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo apt-get update</span><br></pre></td></tr></table></figure>



</li>
</ol>
<ol start="3">
<li><p>安装openJDK编译的依赖库</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo apt-get install libfreetype6-dev libcups2-dev libx11-dev libxext-dev libxrender-dev libxrandr-dev libxtst-dev libxt-dev libasound2-dev libffi-dev autoconf libfontconfig1-dev</span><br></pre></td></tr></table></figure>
</li>
<li></li>
</ol>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://yoursite.com/2020/07/09/unbutu%E4%B8%8B%E7%BC%96%E8%AF%91openjdk13/" data-id="ckcqayu8t0007u4v15ag93k8x" class="article-share-link">Share</a>
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/java/" rel="tag">java</a></li></ul>

    </footer>
  </div>
  
</article>


  


  <nav id="page-nav">
    
    <a class="extend prev" rel="prev" href="/">&amp;laquo; Prev</a><a class="page-number" href="/">1</a><span class="page-number current">2</span><a class="page-number" href="/page/3/">3</a><a class="extend next" rel="next" href="/page/3/">Next &amp;raquo;</a>
  </nav>

</section>
        
          <aside id="sidebar">
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Categories</h3>
    <div class="widget">
      <ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/docker/">docker</a><ul class="category-list-child"><li class="category-list-item"><a class="category-list-link" href="/categories/docker/fastdfs/">fastdfs</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/docker/mysql/">mysql</a></li></ul></li><li class="category-list-item"><a class="category-list-link" href="/categories/idea/">idea</a><ul class="category-list-child"><li class="category-list-item"><a class="category-list-link" href="/categories/idea/github/">github</a></li></ul></li><li class="category-list-item"><a class="category-list-link" href="/categories/java/">java</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/win10/">win10</a><ul class="category-list-child"><li class="category-list-item"><a class="category-list-link" href="/categories/win10/hyper-v/">hyper-v</a></li></ul></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tags</h3>
    <div class="widget">
      <ul class="tag-list" itemprop="keywords"><li class="tag-list-item"><a class="tag-list-link" href="/tags/MySQL/" rel="tag">MySQL</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/canal/" rel="tag">canal</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/docker/" rel="tag">docker</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/fastdfs/" rel="tag">fastdfs</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/github/" rel="tag">github</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/gui/" rel="tag">gui</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/hyper-v/" rel="tag">hyper-v</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/idea/" rel="tag">idea</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/java/" rel="tag">java</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/log/" rel="tag">log</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/lua/" rel="tag">lua</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/nginx/" rel="tag">nginx</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/openresty/" rel="tag">openresty</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/port/" rel="tag">port</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/redis/" rel="tag">redis</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/ubuntu/" rel="tag">ubuntu</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/win10/" rel="tag">win10</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/windows10/" rel="tag">windows10</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/wsl/" rel="tag">wsl</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/wsl1/" rel="tag">wsl1</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/wsl2/" rel="tag">wsl2</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tag Cloud</h3>
    <div class="widget tagcloud">
      <a href="/tags/MySQL/" style="font-size: 12.5px;">MySQL</a> <a href="/tags/canal/" style="font-size: 12.5px;">canal</a> <a href="/tags/docker/" style="font-size: 17.5px;">docker</a> <a href="/tags/fastdfs/" style="font-size: 10px;">fastdfs</a> <a href="/tags/github/" style="font-size: 10px;">github</a> <a href="/tags/gui/" style="font-size: 10px;">gui</a> <a href="/tags/hyper-v/" style="font-size: 10px;">hyper-v</a> <a href="/tags/idea/" style="font-size: 10px;">idea</a> <a href="/tags/java/" style="font-size: 15px;">java</a> <a href="/tags/log/" style="font-size: 10px;">log</a> <a href="/tags/lua/" style="font-size: 12.5px;">lua</a> <a href="/tags/nginx/" style="font-size: 10px;">nginx</a> <a href="/tags/openresty/" style="font-size: 15px;">openresty</a> <a href="/tags/port/" style="font-size: 10px;">port</a> <a href="/tags/redis/" style="font-size: 10px;">redis</a> <a href="/tags/ubuntu/" style="font-size: 20px;">ubuntu</a> <a href="/tags/win10/" style="font-size: 12.5px;">win10</a> <a href="/tags/windows10/" style="font-size: 10px;">windows10</a> <a href="/tags/wsl/" style="font-size: 10px;">wsl</a> <a href="/tags/wsl1/" style="font-size: 10px;">wsl1</a> <a href="/tags/wsl2/" style="font-size: 12.5px;">wsl2</a>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Archives</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/08/">August 2020</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/07/">July 2020</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Recent Posts</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/2020/08/11/Mysql-Host-is-blocked-because-of-many-connection-errors/">Mysql Host is blocked because of many connection errors</a>
          </li>
        
          <li>
            <a href="/2020/08/08/canal%E5%90%8C%E6%AD%A5MySQL%E6%95%B0%E6%8D%AE%E9%85%8D%E7%BD%AE/">canal同步MySQL数据配置</a>
          </li>
        
          <li>
            <a href="/2020/08/03/docker%E4%B8%8Acanal%E5%AE%B9%E5%99%A8%E7%9A%84%E5%AE%89%E8%A3%85/">docker上canal容器的安装</a>
          </li>
        
          <li>
            <a href="/2020/08/03/MySQL%E5%BC%80%E5%90%AFbinlog%E6%97%A5%E5%BF%97%E6%A8%A1%E5%BC%8F/">MySQL开启binlog日志模式</a>
          </li>
        
          <li>
            <a href="/2020/08/01/openresty%E4%BD%BF%E7%94%A8lua%E8%84%9A%E6%9C%AC%E5%AE%9E%E7%8E%B0%E5%B9%BF%E5%91%8A%E7%BC%93%E5%AD%98/">openresty使用lua脚本实现广告缓存.md</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      &copy; 2020 John Doe<br>
      Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>
    </div>
    <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">Home</a>
  
    <a href="/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>


  
<link rel="stylesheet" href="/fancybox/jquery.fancybox.css">

  
<script src="/fancybox/jquery.fancybox.pack.js"></script>




<script src="/js/script.js"></script>




  </div>
</body>
</html>